import util from "../utils/util.js";
const errorHandler = (res, success, fail) => {
  const data = res.data
  if (!data.isSuccess) {
    wx.showToast({
      icon: "none",
      title: data.errorMessage || '请求失败！'
    });

    fail && fail(res)
  } else {
    success(res)
  }
}

export default {
  //===========================注册登录开始===============================

  /**授权登陆**/
  wechatLogin: (data, success) => {
    util.requestGet(util.domain + "user/login/wechat", data, success)
  },

  /**注册短信验证码**/
  regSendVerifyCode: (data, success) => {
    util.requestGet(util.domain + "user/regSendVerifyCode", data, success)
  },
  /**注册账号**/
  register: (data, success) => {
    util.requestGet(util.domain + "user/register", data, success)
  },

  /**绑定微信手机号**/
  bindWechatMobile: (data, success) => {
    util.requestGet(util.domain + "user/bindWechatMobile/jjrjs", data, success)
  },

  /**通过openid获取用户信息*/
  getUserInfoByOpenId: (data, success) => {
    util.requestGet(util.domain + "user/findByOpenid", data, success)
  },

  //===========================注册登录结束===============================


  //==========================首页开始==============================
  //获取今日粉丝活力
  getCurrentFunsCount: (data, success) => {
    util.requestGet(util.houseDomain + "homePage/getCurrentFunsCount", data, success)
  },
  //获取粉丝活力列表
  getFunsCountList: (data, success) => {
    util.requestGet(util.houseDomain + "homePage/getFunsCountList", data, success)
  },

  //==========================首页结束===============================

  //==========================粉丝开始==============================
  //获取粉丝统计列表
  getHouList: (data, success) => {
    util.requestGet(util.houseDomain + "homePage/getHouList", data, success)
  },
  //获取粉丝统计列表总计
  getFunsPage: (data, success) => {
    util.requestGet(util.houseDomain + "homePage/getFunsPage", data, success)
  },
  //粉丝动态获取粉丝头像、来源
  custUserDetails: (data, success) => {
    util.requestGet(util.houseDomain + "cm/cust/custUserDetails", data, success)
  },
  //粉丝动态列表 筛选
  userVp: (data, success) => {
    util.requestPost(util.houseDomain + "cm/cust/userVp", data, success)
  },
  //粉丝浏览记录列表
  funList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/funList", data, success)
  },

  //粉丝排行榜
  fansRankingList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/fansRankingList", data, success)
  },
  //判断是否存在新访客
  getHouDelByReadStatus: (data, success) => {
    util.requestGet(util.houseDomain + "mk/delAccess/getHouDelByReadStatus", data, success)
  },
  //更新访客数据为已读
  updateReadStatus: (data, success) => {
    util.requestGet(util.houseDomain + "mk/delAccess/updateReadStatus", data, success)
  },






  //==========================粉丝结束===============================


  //==========================我的--设置开始==============================

  /**我的页面**/
  getSessionInfo: (data, success) => {
    util.requestGet(util.domain + "user/getSessionInfo", data, (res) => {
      errorHandler(res, success)
    })
  },

  /**我的--设置接口**/
  settingEdit: (data, success) => {
    util.requestGet(util.domain + "user/edit", data, success)
  },
  /**我的--设置--修改手机**/
  reBindMobile: (data, success) => {
    util.requestGet(util.domain + "user/reBindMobile", data, success)
  },
  /**我的--设置--主营楼盘**/
  editResblock: (data, success) => {
    util.requestGet(util.domain + "user/editResblock", data, success)
  },
  /**我的--设置--微信二维码(新增和修改)**/
  editWechatQrCode: (data, success) => {
    util.requestGet(util.domain + "user/bindQrCode", data, success)
  },
  /**登出**/
  logout: (data, success) => {
    util.requestGet(util.domain + "user/logout", data, success)
  },

  //===========================我的--设置结束===============================

  //===========================房源开始===============================
  // 判断房源的委托数量
  delDelegationTypeAndResblockId: (data, success) => {
    util.requestGet(util.houseDomain + "hou/delDelegationTypeAndResblockId", data, success)
  },
  /**获取房源列表**/
  getHouseList: (data, success) => {
    util.requestPost(util.houseDomain + "hou/list", data, success)
  },
  /**获取我的房源列表**/
  getMyHouseList: (data, success) => {
    util.requestPost(util.houseDomain + "hou/list/myDelList", data, success)
  },

  /**区域-查询**/
  getAreaList: (data, cityCode, success) => {
    util.requestGet(util.houseDomain + "hd/area/list/" + cityCode, data, success)
  },
  /**根据区域ID查商圈**/
  getBizblock: (data, areaId, success) => {
    util.requestGet(util.houseDomain + "hd/bizblock/list/" + areaId, data, success)
  },

  addHouseResblcok: (data, success) => {
    util.requestGet(util.houseDomain + "hou/findBuildingNumberByResblcokIdNew", data, success)
  },
  //
  //添加房源单元
  addHouseUnit: (data, success) => {
    util.requestGet(util.houseDomain + "hou/findUnit", data, success)
  },
  //添加房源楼层
  addHouseFloor: (data, success) => {
    util.requestGet(util.houseDomain + "hou/findFloor", data, success)
  },
  //添加楼层房号
  addHouseRoomNumber: (data, success) => {
    util.requestGet(util.houseDomain + "hou/findRoomNo", data, success)
  },

  //房源是否已经委托  houseId房源ID  hdHouseId  HD房源ID   delegationType  委托类型
  addHouseisExistDel: (data, success) => {
    util.requestGet(util.houseDomain + "hou/existDel", data, success)
  },
  //保存房源
  addHouseSave: (data, success) => {
    util.requestPost(util.houseDomain + "hou/houseMaintanin", data, success)
  },
  /** 创建新房源委托 */
  addHouseSaveNew: (data, success) => {
    util.requestPost(util.houseDomain + "hou/houseAndCommissionNew", data, success)
  },

  //手动填写房源的楼层单元
  addCreateHouse: (data, success) => {
    util.requestPost(util.houseDomain + "hou/createHouse", data, success)
  },

  // 新建楼层
  addCreateBuilding: (data, success) => {
    util.requestPost(util.houseDomain + "hou/createBuilding", data, (res) => {
      if (res && res.data && res.data.isSuccess) {
        success(res)
      }
    })
  },

  /**获取房源详情**/
  getHouseInfo: (data, success) => {
    util.requestGet(util.houseDomain + "hou/info", data, success, null, {
      isAllowRepeat: true
    })
  },
  /**获取新房房源详情**/
  getnewHouseInfo: (data, success) => {
    util.requestGet(util.houseDomain + "hm/newHouseController/getNewHouseInfo", data, success)
  },
  /**修改新房价格**/
  updateNewHouseAveragePrice: (data, success) => {
    util.requestGet(util.houseDomain + "hm/newHouseController/updateNewHouseAveragePrice", data, success)
  },
  /**房源访客量**/
  getCount: (data, success) => {
    util.requestGet(util.houseDomain + "mk/delAccess/getCountByHouDelId", data, success)
  },
  /**获取房源详情 粉丝列表**/
  getFuns: (data, success) => {
    util.requestGet(util.houseDomain + "mk/hou/getFuns", data, success)
  },

  /**获客工具模板**/
  getModelImg: (data, success) => {
    util.requestGet(util.houseDomain + "mk/hou/getModelImg", data, success)
  },

  /** 营销活动--统计列表内容总数**/
  getCouponsCount: (data, success) => {
    util.requestGet(util.houseDomain + "mk/coupons/list/count", data, success)
  },

  /**房源详情编辑——图片视频编辑**/
  updateImage: (data, success) => {
    util.requestPost(util.houseDomain + "hou/updateImage", data, success)
  },

  /**房源详情编辑——基本信息**/
  updateBaseInfo: (data, success) => {
    util.requestPost(util.houseDomain + "hou/updateBaseInfo", data, success)
  },

  /**房源详情修改编辑——房源信息**/
  updateDelInfo: (data, success) => {
    util.requestPost(util.houseDomain + "hou/updateDelInfo", data, success)
  },
  /**房源详情编辑——房源介绍**/
  updateRecommendInfo: (data, success) => {
    util.requestPost(util.houseDomain + "hou/updateRecommendInfo", data, success)
  },
  /**房源分享——客服**/
  sendMessage: (data, success) => {
    util.requestGet(util.domain + "/miniCode/sendMessage", data, success)
  },

  /**营销活动--添加个人优惠券**/
  createMyCoupons: (data, success) => {
    util.requestPost(util.houseDomain + "mk/coupons/create", data, success)
  },
  /**营销活动--个人券**/
  getMyCouponsList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/coupons/list/my", data, success)
  },

  /**营销活动--平台券**/
  getCompanyCouponsList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/coupons/list/company", data, success)
  },

  /**营销活动--团队券**/
  getTeamCouponsList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/coupons/list/team", data, success)
  },

  /**营销活动--绑定优惠劵**/
  bindCoupons: (data, success) => {
    util.requestGet(util.houseDomain + "mk/coupons/bindCoupons", data, success)
  },



  //===========================客源开始===============================

  /**客源列表**/
  getMyCust: (data, success) => {
    util.requestGet(util.houseDomain + "cm/cust/myCust", data, success)
  },
  /**客源详情**/
  getCustDetails: (data, success) => {
    util.requestGet(util.houseDomain + "cm/cust/details", data, success)
  },
  /**获取新导入客户(数)**/
  getNewCustCount: (data, success) => {
    util.requestGet(util.houseDomain + "cm/cust/getNewCustCount", data, success)
  },
  /**粉丝浏览记录筛选**/
  custVp: (data, success) => {
    util.requestPost(util.houseDomain + "cm/cust/custVp", data, success)
  },

  //===========================客源结束===============================

  /*
    主动到优惠券
   */
  /**营销活动--个人券**/
  getMyCouponsFunList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/coupons/funList/my", data, success)
  },

  /**营销活动--平台券**/
  getCompanyCouponsFunList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/coupons/funList/company", data, success)
  },

  /**营销活动--团队券**/
  getTeamCouponsFunList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/coupons/funList/team", data, success)
  },
  //优惠券详情
  getCouponsFunhouList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/coupons/houList", data, success)
  },












  //===========================房源结束===========================

  //===========================创建小区--设置开始===========================

  /**创建小区**/
  addVillage: (data, success) => {
    util.requestGet(util.houseDomain + "hm/resblock/add", data, success)
  },
  /**获取小区列表**/
  villageList: (data, success) => {
    util.requestGet(util.houseDomain + "hm/resblock/list", data, success)
  },


  // 小区列表搜索
  villageSearch: (data, success) => {
    util.requestGet(util.houseDomain + "hm/resblock/list/keyWords", data, success)
  },
  //===========================创建小区--设置结束===========================

  // 下架房源
  // 新的下架
  houseFail: (params, data, success) => {
    util.requestGet(util.houseDomain + "hou/cooperation/downDelAndHmCooperationHouse/" + params, data, success)
  },

  // 检查是否有相同房源在租或在售
  checkDelegationType: (data, success) => {
    util.requestGet(util.houseDomain + "hou/checkDelegationType", data, success)
  },



  //-----------------------------合伙人------------------------------------------//
  // 1.概括
  getMyPartnerInfo: (success) => {
    util.requestGet(util.houseDomain + "pm/partner/my", '', success)
  },
  // 2.我的合伙人列表
  getMyPartnerList: (page, rows, success) => {
    util.requestGet(util.houseDomain + "pm/partner/list?" + 'page=' + page + '&rows=' + rows, '', success)
  },
  // 3. 奖励设置
  postMyPartnerHonor: (data, success) => {
    util.requestPost(util.houseDomain + "pm/rewardRule/save", data, success)
  },
  // 4.奖励规则详情
  getMyPartnerHonor: (success) => {
    util.requestGet(util.houseDomain + "pm/rewardRule/detail", '', success)
  },

  // 5. 推荐客户列表
  myPartnerKeList: (partnerId, page, rows, delegateType, status, startDate, endDate, success) => {
    util.requestGet(util.houseDomain + "pm/cust/jjr/list?page=" + page + '&rows=' + rows + '&delegateType=' + delegateType + '&status=' + status + '&startDate=' + startDate + '&endDate=' + endDate + '&partnerId=' + partnerId, '', success)
  },
  // 6. 推荐客源详情
  myPartnerKeDetail: (id, success) => {
    util.requestGet(util.houseDomain + 'pm/cust/' + id + '?miniName=jjrjs', '', success)
  },
  // 7. 推荐房源列表
  myPartnerRoomList: (partnerId, page, rows, delegateType, status, startDate, endDate, success) => {
    util.requestGet(util.houseDomain + "pm/hou/jjr/list?page=" + page + '&rows=' + rows + '&delegateType=' + delegateType + '&status=' + status + '&startDate=' + startDate + '&endDate=' + endDate + "&partnerId=" + partnerId, '', success)
  },
  // 8. 推荐房源详情
  myPartnerRoomDetail: (id, success) => {
    util.requestGet(util.houseDomain + 'pm/hou/' + id + '?miniName=jjrjs', '', success)
  },
  //9余额明细
  myPartnerMoneyList: (page, rows, success, id = "") => {
    util.requestGet(util.houseDomain + 'pm/reward/jjr/list?page=' + page + '&rows=' + rows + "&partnerId=" + id, '', success)
  },
  // 10.客源驳回无效
  myPartnerKeReject: (id, data, success) => {
    util.requestPost(util.houseDomain + 'pm/cust/invalid/' + id, data, success)
  },
  //11. 房源驳回无效
  myPartnerRoomReject: (id, data, success) => {
    util.requestPost(util.houseDomain + 'pm/hou/invalid/' + id, data, success)
  },

  // 12. 经纪人详情
  myPartnerDetail: (id, success) => {
    util.requestPost(util.houseDomain + 'pm/partner/' + id, '', success)
  },

  // 15. 房源预支付1
  roomReadyToPay: (jjrHouId, success) => {
    util.requestGet(util.houseDomain + 'pm/hou/confirm/' + jjrHouId, '', success)
  },
  // 16.房源与支付 成交
  roomReadyToPayDeal: (jjrHouId, success) => {
    util.requestGet(util.houseDomain + 'pm/hou/deal/' + jjrHouId, '', success)
  },


  // 16. 客源预支付1
  custReadyToPay: (jjrCustId, success) => {
    util.requestGet(util.houseDomain + 'pm/cust/confirm/' + jjrCustId, '', success)
  },
  // 17.客源与支付 成交
  custReadyToPayDeal: (jjrCustId, success) => {
    util.requestGet(util.houseDomain + 'pm/cust/deal/' + jjrCustId, '', success)
  },

  //===========================访客开始===============================
  /**获取访客页访客列表(页面作为组件放置在index页内)**/
  visiTorsList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/delAccess/list", data, success)
  },

  /** 获取访客分析数据 */
  getVisiTorsAnalyzeList: (data, success) => {
    util.requestGet(util.houseDomain + "mk/delAccess/userList", data, success)
  },

  /** 设置访客置顶 */
  setVisiTorsAnalyzeTop: (data, success) => {
    util.requestGet(util.houseDomain + "mk/delAccess/changeTopping", data, success)
  },

  /** 获取客户详情数据 */
  getCustomerInfo: (data, success) => {
    util.requestGet(util.domain + "/noauth/anUser/info", data, success)
  },
  /** 获取访客详情- 客户访问房源的详细数据 */
  getCustomerData: (data, success) => {
    util.requestGet(util.houseDomain + "/mk/delAccess/userData", data, success)
  },
  /** 获取访客感兴趣房源信息 */
  getCustomerInterested: (data, success) => {
    util.requestGet(util.houseDomain + "/mk/delAccess/targetHouse", data, success)
  },
  /** 获取访客轨迹 */
  getCustomerVisitTrack: (data, success) => {
    util.requestGet(util.houseDomain + "/mk/delAccess/houseRecord", data, success)
  },

  /** 屏蔽访客 */
  setShiseldVisitor: (data, success) => {
    util.requestPost(util.domain + "/noauth/anUser/shiseld", data, success, null, {
      customHeader: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    })
  },
  /** 保存客服需要发送的房源信息 */
  setHouseInfo: (data, success) => {
    util.requestPost(util.domain + "miniCode/saveWxMessage", data, success, null, {
      customHeader: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    })
  },
  /** 将旧的房源信息设为无效 */
  oldHouseInfo: (data, success) => {
    util.requestGet(util.domain + "miniCode/deleteWxMessage", data, success)
  },

  //用户信息解密
  bindUnionId: (data, success) => {
    util.requestGet(util.domain + "user/bindUnionId", data, success)
  },

  // 初始化授权信息
  complementUserInfo: (data, success) => {
    util.requestPost(util.domain + "user/complementUserInfo", data, success)
  },

  //解密群信息
  getDecryptData: (data, success) => {
    util.requestGet(util.domain + "user/getDecryptData", data, success)
  },

  /**获取活动宣传页*/
  getOperateList: (data, success) => {
    util.requestGet(util.houseDomain + "cm/operate/list", data, success)
  },
  /**保存选中直播间房源列表*/
  saveLiveHouseList: (data, success) => {
    util.requestPost(util.houseDomain + "lv/hou/save", data, success)
  },
  /**查询虚拟房源*/
  getDemoHouse: (data, success) => {
    util.requestGet(util.houseDomain + "lv/hou/getDemoHouse", data, success)
  },
  /**判断用户登录情况  0：未登录   1：已登录，未录入房源  2：已登录已录入房源*/
  checklogin: (data, success) => {
    util.requestGet(util.houseDomain + "lv/user/checklogin", data, success)
  },
  //二维码相关
  //1. 长--转---端
  qrcodeLongToShort: (params, data, success) => {
    util.requestGet(util.houseDomain + "mk/shortUrl/put/" + params, data, success)
  },
  //2.短---长
  qrcodeShortToLong: (params, data, success, fail) => {
    util.requestGet(util.houseDomain + "mk/shortUrl/get/" + params, data, success, fail)
  },

  /**获取微信房源城市 (抢房页)*/
  getWxCity: (data, success) => {
    util.requestPost(util.houseDomain + "hou/list/wxCity", data, success)
  },

  /** 房源搬家的城市列表 */
  getMoveHouse: (data, success) => {
    success({
      data: {
        content: {
          rows: [{
            city: "苏州市"
          }]
        }
      }
    })
  },

  /**获取具体微信房源信息*/
  getWxMessagesHouses: (data, success) => {
    util.requestPost(util.houseDomain + "hou/list/wxMessages", data, success)
  },
  // 查看用户是否为白名单
  isWhiteList: (data, success) => {
    util.requestPost(util.houseDomain + "pm/wallet/getPmWhitelistMobileServiceBySourceAndPhone", data, success)
  },
  // 用户余额
  myBalance: (data, success) => {
    util.requestPost(util.houseDomain + "pm/wallet/getPmUserWalletInfoVoByUserId", data, success)
  },
  // 账户明细
  myDetails: (data, success) => {
    util.requestPost(util.houseDomain + "pm/wallet/queryPmWalletOperationDetailByPage", data, success)
  },
  // 提现
  drawCash: (data, success) => {
    util.requestGet(util.houseDomain + "pm/pay/getMoney", data, success)
  },

  /** 房源搬家 */
  /** 获取店家列表 */
  queryPmReferenceDetailInfoByRefCode: (data, success) => {
    util.requestPost(util.houseDomain + "pm/pmReferenceInfo/queryPmReferenceDetailInfoByRefCode", data, success)
  },

  /** 获取某店家房源列表 */
  queryHmPickOutHouseInfoServiceByPage: (data, success) => {
    util.requestPost(util.houseDomain + "hou/queryHmPickOutHouseInfoServiceByPage", data, success)
  },
  /** 房源搬家 */
  importPickOutHouse: (data, success) => {
    util.requestPost(util.houseDomain + "hou/importPickOutHouse", data, success)
  },
  /** 房源搬家end */

  /** 新房 搜索列表 */
  getShareHouse: (data, success, fail) => {
    util.requestGet(util.houseDomain + "hm/newHouseController/getShareHouse", data, success, fail)
  },

  /** 我的新房 */
  myNewHouse: (data, success) => {
    util.requestPost(util.houseDomain + "hou/list/myNewHouse", data, success)
  },

  /** 添加新房 */
  addNewHouse: (data, success) => {
    util.requestGet(util.houseDomain + "hm/newHouseController/addNewHouse", data, success)
  },

  /**查询新房相册类型 */
  queryPmReferenceDetailInfo: (data, success) => {
    util.requestGet(util.houseDomain + "hm/newHouseController/findHouseTypeGroup", data, success)
  },

  /** 查询图片 */
  getResblockImgList: (data, success) => {
    util.requestPost(util.houseDomain + "hou/queryResblockImgListByPage", data, success)
  },
  /** 查询新房户型图 */
  getNewhousetype: (data, success) => {
    util.requestGet(util.houseDomain + "hm/newHouseController/findHouseType", data, success)
  },
  /**查询户型图详情 */
  getNewhouseImg: (data, success) => {
    util.requestGet(util.houseDomain + "hm/newHouseController/findHouseTypeInfo", data, success, null, {
      isAllowRepeat: true
    })
  },
  /**获取抢房热词 */
  getVieHotKey: (data, success) => {
    util.requestPost(util.houseDomain + "pm/pmReferenceInfo/getReferenceDetailInfoByDetailCode", data, success)
  },
  /**是否有抢房新房源未读 */
  compareInterviewTime: (data, success) => {
    util.requestPost(util.houseDomain + "hou/compareInterviewTime", data, success)
  },
  /**已读抢房 */
  readVieHouse: (data, success) => {
    util.requestPost(util.houseDomain + "hou/insertQueryHmSeizeHousePageLogServiceByPageLog", data, success, null, {
      isAllowRepeat: true
    })
  },

  /* 新人身份提交审核*/
  examinePmActivityOrderInfo: (data, success) => {
    util.requestPost(util.houseDomain + "pm/wallet/examinePmActivityOrderInfo", data, success)
  },
  // 红包动态
  dyNamicState: (data, success) => {
    util.requestPost(util.houseDomain + "pm/wallet/queryActivityOrderDisplay", data, success)
  },

  //分享日志
  shareHouseLog: (data, success) => {
    util.requestPost(util.houseDomain + "hou/insertShareHouseOperationLog", data, success, null, {
      isAllowRepeat: true
    })
  },

  /** 扫码添加房源搬家 */
  scanAddHouseFromWeb(data, success) {
    util.requestPost(util.houseDomain + "hou/importPickOutHouseResources", data, success)
  },

  /** 客服电话 */
  insertMinePageOperationLog(data, success) {
    util.requestPost(util.houseDomain + "hou/insertMinePageOperationLog", data, success)
  },

  // 获取绑定的公司
  // bindStatus 1：待审核，2：通过， 3：拒绝，4：移除';
  getBindShop(data, success) {
    util.requestPost(util.houseDomain + "boss/getBindShop", data, success)
  },

  // 通过企业编码查询企业
  getCompany(data, success) {
    util.requestGet(util.houseDomain + "boss/company", data, success)
  },
  // 申请加入企业
  ApplyToJoin(data, success) {
    util.requestPost(util.houseDomain + "boss/company/ApplyToJoin", data, success)
  },
  // 通过企业编码，查询小组（加条件）
  getStoreList(data, success) {
    util.requestPost(util.houseDomain + "boss/company/getStoreList", data, success)
  },
  // 申请开通报名(企业报名)
  addPartner(data, success) {
    util.requestPost(util.domain + "noauth/anUser/addPartner", data, success, null, {
      customHeader: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    })
  },

  /** 根据商铺ID查询商铺信息
   * shopId
   */
  getShopInfo(data, success) {
    util.requestGet(util.houseDomain + "boss/getShopInfo", data, success)
  },

  /** 提交关联VR任务
   * 
   */
  submitVrTask(data, success) {
    // util.requestPost(util.houseDomain + "hou/submitVrTask", data, success)
    util.requestPost(util.houseDomain + "hou/submitVrTask3", data, success)
  },

  /** 查询会员权限
   * 
   */
  getMemberPower(data, success) {
    util.requestGet(util.houseDomain + "member/getMemberPower", data, success, null, {
      isAllowRepeat: true
    })
  },
  /** 会员到期时间
   * statue 0：正常，1：禁用，2：到期'; 3 非会员
   */
  getMemberList(data, success) {
    util.requestPost(util.houseDomain + "member/api/getMemberList", data, success)
  },

  /** 获取房源未合成场景列表
   * 
   */
  getVrDataByColumn(data, success) {
    util.requestGet(util.houseDomain + "hou/getVrDataByColumn", data, success)
  },

  /** 提交全景图任务
   * 
   */
  submitVrSphereTask(data, success) {
    util.requestPost(util.houseDomain + "hou/submitVrSphereTask", data, success)
  },
  /** 
   * 提交全景图任务 （新的）
   */
  submitVrSphereTaskMq(data, success) {
    util.requestPost(util.houseDomain + "hou/submitVrSphereTaskMq", data, (res) => {
      errorHandler(res, success)
    })
  },

  /** 获取配音模版文字
   * delId 委托ID
   * delType 委托类型 SALES/RENT
   */
  getDubbingInfo(data, success) {
    util.requestGet(util.houseDomain + "hou/getDubbingInfo", data, success)
  },

  /** 保存配音文字
   * delId 委托ID
   * dubbingInfo	是 配音文字
   */
  saveDubbingInfo(data, success) {
    util.requestPost(util.houseDomain + "hou/saveDubbingInfo", data, success, null, {
      customHeader: {
        "Content-Type": "application/x-www-form-urlencoded"
      }
    })
  },

  /** 提交合成视频音频任务
   * delId 委托ID
   * taskCode 任务编码（spheretovideo 合成视频；videodubbing 合成配音）
   * sceneIdList	string [] 非必须 节点列表
   * dubbed	string 配音声源（'0' 男声；'1' 女声）
   */
  submitSphereToVideoTask(data, success) {
    util.requestPost(util.houseDomain + "hou/submitSphereToVideoTask", data, success)
  },

  /** 图片合成视频 */
  submitImgsToVideoTask(data, success) {
    util.requestPost(util.houseDomain + "hou/submitImgsToVideoTask", data, success)
  },

  
  /** 图片合成视频(新版2021/09/09) */
  submitImgsToVideoTaskMq(data, success) {
    util.requestPost(util.houseDomain + "hou/submitImgsToVideoTaskMq", data, success)
  },

  /** 房雷达 */
  roomRadar(data, success) {
    util.requestGet(util.houseDomain + "hou/roomRadarNew", data, success)
  },

  /** 获取选择合成视频节点
   * 
   */
  getAllVrData(data, success) {
    util.requestGet(util.houseDomain + "hou/getAllVrData", data, success)
  },

  /** 获取视频链接
   * data  视频fileid
   */
  getOssfiles(data, success) {
    if (data.indexOf('http') == 0) {
      return success({
        data
      })
    }
    util.requestGet(util.aistFilesvrWebUrl + "ossfiles/" + data, null, success)
  },

  /** 
   * 查询房雷达支持接口
   */
  getCityByModule(data, success) {
    util.requestGet(util.houseDomain + "hd/city/getCityByModule", data, success)
  },

  //授权登录WEB端
  getAuthorization(data, success) {
    util.requestGet(util.domain + "user/qrCode/authorization", data, success)
  },

  //消息公告
  getNotice(data, success) {
    util.requestGet(util.houseDomain + "cm/operate/getNotice", data, success)
  },

  //视频教程
  queryPmReferenceDetailInfoByRefCode(data, success) {
    util.requestPost(util.houseDomain + "pm/pmReferenceInfo/queryPmReferenceDetailInfoByRefCode", data, success)
  },

  //关闭添加小程序提醒
  noShow(data, success) {
    util.requestGet(util.domain + "user/noShow", data, success)
  },

  //拆红包接口
  openRedpacket(data, success) {
    util.requestGet(util.houseDomain + "pm/marketing/openRedpacket", data, success)
  },

  //查询会员卡
  getMembershipCard(data, success) {
    util.requestPost(util.houseDomain + "member/api/getMembershipCard", data, success)
  },

  //推广码查询折扣
  getInfoByPushCode(data, success) {
    util.requestGet(util.houseDomain + "member/getInfoByPushCode", data, success)
  },

  //在线支付
  onlinePayment(data, success) {
    util.requestGet(util.houseDomain + "pm/pay/onlinePayment", data, (res) => {
      errorHandler(res, success)
    })
  },

  //判断用户是否有房源
  checkHouses(data, success) {
    util.requestGet(util.houseDomain + "hou/checkHouses", data, success)
  },

  //是否在pc端登录
  checkPcLogin(data, success) {
    util.requestGet(util.domain + "noauth/anUser/checkPcLogin", data, success)
  },

  //检验用户是否通过mobile端进行过房源搬家
  checkMobileHou(data, success) {
    util.requestGet(util.domain + "user/checkMobileHou", data, success)
  },

  //房源搬家失效旧房源(老的 暂时不用)
  changeHouStatue(data, success) {
    util.requestGet(util.houseDomain + "hou/changeHouStatue", data, success)
  },

  //专属客服接口
  getPrivateSale(data, success) {
    util.requestGet(util.houseDomain + "pm/marketing/getPrivateSale", data, success)
  },

  //模糊查询小区接口
  likeResblockName(data, success) {
    util.requestGet(util.houseDomain + "mk/delAccess/likeResblockName", data, success)
  },

  //模糊查询小区接口
  getEssayList(data, success) {
    util.requestGet(util.houseDomain + "cm/operate/getEssayList", data, success)
  },

  // log登录日志坐标上传
  pushUserFirstLogin(data, success) {
    util.requestGet(util.domain + "user/pushUserFirstLogin", data, success)
  },

  // 校验该用户是否领取过优惠卷
  checkHavedCoupon(data, success) {
    util.requestGet(util.houseDomain + "pm/wallet/checkHavedCoupon", data, success)
  },

  // 查询下单用户优惠价金额
  getMyCoupons(data, success) {
    util.requestGet(util.houseDomain + "pm/wallet/getMyCoupons", data, success)
  },

  // 被拉新人领取优惠卷
  receiveCoupons(data, success) {
    util.requestGet(util.houseDomain + "pm/wallet/receiveCoupons", data, success)
  },

  // 我的赏金模块
  getFissionMember(data, success) {
    util.requestGet(util.houseDomain + "pm/wallet/getFissionMember", data, success, null, {
      isAllowRepeat: true
    })
  },
  //============================================访客开始=================================================
  // 合作房源用户信息
  queryUserAuthInfo(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/queryUserAuthInfo", data, success, null, { isAllowRepeat: true })
  },

  // 合作房源我的合作数据
  summaryInfoByUserId(data, success) {
    util.requestGet(util.houseDomain + "cooperation/summaryinfo/summaryInfoByUserId", data, success)
  },

  /**
   * 提交投诉
   * beComplaintedUser	string 必须 被投诉id	
   * delId	string 必须 委托id	
   * complaintReason	string 必须 投诉原因;(前端文本)	
   * complaintProof	object 非必须 最多三张图片 备注: 最多三张图片
   * complaintRemark	string 非必须 投诉备注
   */
  complaintAdd(data, success) {
    util.requestPost(util.houseDomain + "cooperation/complaint/add", data, (res) => {
      errorHandler(res, success)
    })
  },
  /** 
   * 记录沟通主表，如果之前已经沟通过，则不记录此主记录 
   *  "delId":"1234",
   *  "cooperationId":"1234",
   *  "houseOwnerId":"111",
   *  "houseOwnerUnionid":"233",
   */
  insertHmCooperationTalkingMain(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/insertHmCooperationTalkingMain", data, success)
  },

  /** 
   * 请求 复制房源or交换手机号
   *  "houseOwnerUnionid":"ssss",
      "houseInviteUnionid":"aaaa",
      "type":0 -- 0请求交换房源  1请求交换手机号 
   */
  recordAskCopyPhoneOrHouse(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/recordAskCopyPhoneOrHouse", data, success)
  },
  /** 
   * 回应 复制房源or交换手机号  0拒绝  1同意
   * "askCopyResult": "",
   * "askExchangePhoneResult": 1,
   * "subId":"222"
   */
  updateCopyOrExchangeRecord(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/updateCopyOrExchangeRecord", data, success)
  },

  /** 
   * 同意-复制房源
   * cooperationId	string 必须 合作委托id	
   * askUnionId	string 必须 请求复制者unionId  
   */
  agreeCopyDel(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/copyDel", data, (res) => {
      errorHandler(res, success)
    })
  },

  /** 
   * 更新咨询时间
   * unionIdOne	string 非必须 用户unionId	
   * unionIdTwo	string 非必须 用户unionId	
   * lastTime	string 非必须 最后一次聊天时间
   * 
   */
  updateCooperationTalkingTime(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/updateCooperationTalkingTime", data, success)
  },

  /** 
   * 查询该房源是否已复制
   * cooperationId
   */
  queryCopyHouseStatus(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/queryCopyHouseStatus", data, success, null, {
      isAllowRepeat: true
    })
  },

  /** 
   * 根据用户userId, 查询其委托表中可以发布合作房源的数量
   * userId
   */
  queryAvailablePublishHouseCount(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/queryAvailablePublishHouseCount", data, success, null, {
      loading: true
    })
  },

  /** 
   * 查询可发房源列表信息
   * "userId":"cafa90c19ea6431294ee119d3e1f90b0",
   * "resblockNameKeyWord":"",
   * "cityName":"上海市",
   * "delegationType":"RENT",
   * "pageNum":1,
   * "pageSize":2
   */
  queryAvailablePublishHousePageInfo(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/queryAvailablePublishHousePageInfo", data, (res) => {
      errorHandler(res, success)
    })
  },

  /** 
   * 发布合作房源
   * data 数组
   */
  publishCooperationHouse(data, success, fail) {
    util.requestPost(util.houseDomain + "hou/cooperation/publishCooperationHouse", data, (res) => {
      errorHandler(res, success, fail)
    })
  },

  /** 
   * 根据unionId查询用户信息
   * unionId 数组
   */
  getJJRVO(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/getJJRVO", data, (res) => {
      errorHandler(res, success)
    })
  },

  /** 
   * 获取im消息登录秘钥
   */
  getUserSig(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/getUserSig", data, success)
  },

  /** 
   * 获取系统版本数据
   *  "pageNum":1,
   *  "pageSize":3
   */
  getSystemMessagePage(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/getSystemMessagePage", data, success)
  },




  // 合作房源首页列表
  searchHouseCooperationByResBlock(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/searchHouseCooperationByResBlock", data, success)
  },
  // 推荐 合作房源
  recommendCooperationHouse(data, success, fail) {
    util.requestPost(util.houseDomain + "hou/cooperation/recommendCooperationHouse", data, (res) => {
      errorHandler(res, success, fail)
    })
  },

  // 合作房源查询小区接口
  likeHouseCooperationByName(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/likeHouseCooperationByName", data, success)
  },

  // 合作房源搜索插入历史
  addCooperationSearchLog(data, success) {
    util.requestGet(util.houseDomain + "cooperation/user/addCooperationSearchLog", data, success)
  },

  /**
   * 合作房源详情页 
   * cooperationId
   */
  getCooperationInfo(data, success, fail) {
    util.requestGet(util.houseDomain + "hou/cooperation/info", data, (res) => {
      errorHandler(res, success, fail)
    }, null, {
      isAllowRepeat: true
    });
  },

  // 合作房源我发布的列表
  myCooperationList(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/myCooperationList", data, success)
  },


  // 合作房源我发布的列表
  myCooperationTalkingList(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/myCooperationTalkingList", data, success)
  },

  // 合作房源我咨询的列表
  myCooperationTalkingDetail(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/myCooperationTalkingDetail", data, success)
  },

  // 合作房源我的合作总数量
  getMyCooperationHouseNum(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/getMyCooperationHouseNum", data, success)
  },

  /**
   * 合作房源下架合作
   * cooperationId 必填
   * downReason 下架原因 非必填
   *  */
  downMyCooperation(data, success, fail) {
    util.requestPost(util.houseDomain + "hou/cooperation/downMyCooperation", data, (res) => {
      errorHandler(res, success, fail)
    })
  },

  // 合作房源查询我可以发布的合作房源小区
  searchCouldPushCooperation(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/searchCouldPushCooperation", data, success)
  },

  // 合作房源查询我发布的合作房源小区
  searchMyPushCooperation(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/searchMyPushCooperation", data, success)
  },

  searchMyPushCooperationX(data, success) {
    data.type = 1
    util.requestGet(util.houseDomain + "hou/cooperation/searchMyPushCooperation", data, success)
  },

  // 合作房源查询我咨询的合作房源小区
  searchMyTalkingCooperation(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/searchMyTalkingCooperation", data, success)
  },

  // 订阅列表
  subscribeList(data, success) {
    util.requestPost(util.houseDomain + "external_house/subscribe_list", data, success)
  },

  // 订阅小区/取消订阅
  subscribe(data, success, fail) {
    util.requestGet(util.houseDomain + "external_house/subscribe", data, success, fail)
  },

  // 新上房源首页列表
  newAddHouseList(data, success) {
    util.requestPost(util.houseDomain + "external_house/list", data, success, null, {
      isAllowRepeat: true
    })
  },

  // 我的订阅列表
  mySubscribeList(data, success, fail) {
    util.requestPost(util.houseDomain + "external_house/resblock_list_sum", data, success, fail, {
      isAllowRepeat: true
    })
  },

  // 检查是否关注公众号
  checkIsFollowOfficial(data, success) {
    util.requestGet(util.domain + "user/checkFockWxGzh", data, success)
  },

  /**
   * 用户离线且关注公众号发送公众号信息
   * unionId	是 信息接收人unionId
     talkingTime	是 发送信息时间戳（秒）
     type: auth 认证信息 primary 初级的 类型 
  */
  sendGZHMessage(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/sendGZHMessage", data, success)
  },

  // 查询是否已关注微信公众号
  queryIsWeChatSubscription(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/queryIsWeChatSubscription", data, success)
  },

  // 查询用户错过房源数量
  skipExternalHouse(data, success) {
    util.requestGet(util.houseDomain + "external_house/skipExternalHouse", data, success)
  },

  /**
   * 新搬家接口
   * @param {*} data object []
   *  url	string 非必须
   *  skipRepeat	string 非必须 0 默认值 校验重复房源、1 跳过重复房源校验 
   *  vrStatus	string 非必须 是否下载VR 
   * @param {*} success 
   */
  movingHouse(data, success) {
    util.requestPost(util.houseDomain + "movingHouse/movingHouse", data, success)
  },

  // 通过id查询搬家任务日志
  taskListByIds(data, success) {
    util.requestPost(util.houseDomain + "movingHouse/taskListByIds", data, success)
  },

  // 根据城市查询商圈
  getAreaByCitycode(data, success) {
    util.requestGet(util.houseDomain + `external_house/get_area_by_citycode/${data}`, {}, success)
  },

  // 订阅商圈
  subscribeTradearea(data, success, fail) {
    util.requestPost(util.houseDomain + "external_house/subscribe_tradearea", data, success, fail)
  },

  // 获取已订阅过小区的城市
  getExistCity(data, success, fail) {
    util.requestGet(util.houseDomain + "external_house/get_exist_city", data, success, fail)
  },

  // 保存业务范围
  saveServiceScope(data, success, fail) {
    util.requestPost(util.houseDomain + "external_house/save_service_scope", data, success, fail)
  },

  // 查询用户业务范围
  getServiceScope(data, success, fail) {
    util.requestGet(util.houseDomain + "external_house/get_service_scope", data, success, fail)
  },

  // 新上房源二手/出租 小区搜索
  getResblickByName(data, success, fail) {
    util.requestGet(util.houseDomain + "external_house/get_resblick_by_name", data, success, fail)
  },

  // 根据hdResblockId检查是否订阅小区
  checksubscribe(data, success, fail) {
    util.requestGet(util.houseDomain + "external_house/checksubscribe", data, success, fail)
  },

  // 获取树懒星功能
  newPublicize(data, success, fail) {
    util.requestGet(util.houseDomain + "cm/operate/newPublicize", data, success, fail)
  },

  // 查询订阅商圈列表
  getSubScribeBizcircle(data, success, fail) {
    util.requestGet(util.houseDomain + "external_house/get_subScribe_bizcircle", data, success, fail)
  },

  // 根据商圈信息查询订阅的小区
  getSubScribeResblock(data, success, fail) {
    util.requestPost(util.houseDomain + "external_house/get_subScribe_resblock", data, success, fail)
  },

  // 新版根据城市查询商圈
  getAreaByCitycodes(data, success) {
    util.requestGet(util.houseDomain + `external_house/get_area_by_citycodes/${data}`, {}, success)
  },

  // 新版订阅商圈
  subscribeTradeareas(data, success, fail) {
    util.requestPost(util.houseDomain + "external_house/subscribe_tradeareas", data, success, fail)
  },

  // 小区订阅概览
  getResblockByDay(data, success, fail) {
    util.requestGet(util.houseDomain + "external_house/get_resblock_by_day", data, success, fail)
  },

  // 未读情报
  getUnreadMesgCount(data, success, fail) {
    util.requestGet(util.houseDomain + "external_house/get_unread_mesg_count", data, success, fail)
  },

  // 清除未读情报
  deldeteUnreadMesgCount(data, success, fail) {
    util.requestPost(util.houseDomain + "external_house/deldete_unread_mesg_count", data, success, fail)
  },

  // 房源情报小区订阅列表
  getSubscribeList(data, success, fail) {
    util.requestPost(util.houseDomain + "external_house/get_subscribe_list", data, success, fail)
  },

  // 房源情报房源列表
  getExternalHouseList(data, success, fail) {
    util.requestPost(util.houseDomain + "external_house/get_external_house_list", data, success, fail)
  },

  /** 
   *  拨打虚拟号 （我是客源方）
   *  "delId":"1234",
   *  "cooperationId":"1234",
   *  "houseOwnerId":"111",
   *  "houseOwnerUnionid":"233",
   */
  getVirtualNumber(data, success, fail) {
    util.requestPost(util.houseDomain + "hou/cooperation/getVirtualNumber", data, success, fail, {
      loading: true,
      maxTimeOut: 2 * 1000,
      isAllowRepeat: true
    })
  },

  /** 
   *  拨打虚拟号 （我是房源方）
   *  "delId":"1234",
   *  "cooperationId":"1234",
   * "houseInviteId": "cac7666d1e8541248bc68009476cef67",
   * "houseInviteUnionid": "oiFzC0g3LltENjwJom__WSprL56M",
   *  "houseOwnerId":"111",
   *  "houseOwnerUnionid":"233",
   */
  getVirtualPhoneNumber(data, success, fail) {
    util.requestPost(util.houseDomain + "hou/cooperation/getVirtualPhoneNumber", data, success, fail, {
      loading: true,
      maxTimeOut: 2 * 1000,
      isAllowRepeat: true
    })
  },

  // 查询会员优惠卷
  getMyMemberCoupons(data, success, fail) {
    util.requestGet(util.houseDomain + "pm/wallet/getMyMemberCoupons", data, success, fail)
  },

  // 选择最优优惠卷
  getMyMemberCouponsInfo(data, success, fail) {
    util.requestGet(util.houseDomain + "pm/wallet/getMyMemberCouponsInfo", data, success, fail)
  },
  // 根据城市获取区及商圈
  getBizcircles(data, success, fail) {
    util.requestGet(util.houseDomain + "external_house/get_bizcircles", data, success, fail)
  },
  // 裂变活动 ---奖励明细 ---/shulan-jjr-gateway/api/v1/pm/wallet/getHaveReceivedCouponDetails
  getFissionActivieList: (data, success) => {
    util.requestPost(util.houseDomain + "pm/wallet/getHaveReceivedCouponDetails", data, success)
  },

  //裂变活动 ---领取奖励（三选一） /shulan-jjr-gateway/api/v1/pm/pay/receiveReward
  getFissionRewards: (data, success) => {
    util.requestPost(util.houseDomain + "pm/pay/receiveReward", data, success)
  },

  // ----------------业主房源情报----------------------------------

  // 查询未读消息接口  /shulan-jjr-gateway/api/v1/ho/houseOwner/getUnReadCount
  getUnReadCount(data, success) {
    util.requestGet(util.houseDomain + "ho/houseOwner/getUnReadCount", data, success)
  },

  //删除未读消息 /shulan-jjr-gateway/api/v1/ho/houseOwner/deleteUnReadCount
  deleteUnReadCount(data, success) {
    util.requestDelete(util.houseDomain + "ho/houseOwner/deleteUnReadCount", data, success)
  },

  //查询房源情报订阅小区数量 /shulan-jjr-gateway/api/v1/ho/houseOwner/getSubscribeResblockCount
  getSubscribeResblockCount(data, success) {
    util.requestGet(util.houseDomain + "ho/houseOwner/getSubscribeResblockCount", data, success)
  },

  //导入房源情报订阅小区 /shulan-jjr-gateway/api/v1/ho/houseOwner/importIntelligenceSubResb
  importIntelligenceSubResb(data, success) {
    util.requestGet(util.houseDomain + "ho/houseOwner/importIntelligenceSubResb", data, success)
  },

  //用户行为记录 /shulan-jjr-gateway/api/v1/ho/houseOwner/userBehaviorAdd
  userBehavior_add(data, success) {
    util.requestGet(util.houseDomain + "ho/houseOwner/userBehaviorAdd", data, success)
  },

  //用户行为查询 /shulan-jjr-gateway/api/v1/ho/houseOwner/userBehaviorFind
  userBehavior_find(data, success) {
    util.requestGet(util.houseDomain + "ho/houseOwner/userBehaviorFind", data, success)
  },
  // 订阅商圈 /shulan-jjr-gateway/api/v1/ho/houseOwner/doSubscribeBizcircle
  subscribeToBusiness(data, success) {
    util.requestPost(util.houseDomain + "ho/houseOwner/doSubscribeBizcircle", data, success)
  },

  // 商圈列表信息及订阅小区数量 /shulan-jjr-gateway/api/v1/ho/houseOwner/getSubscribeBizcircleTree
  getSubscribeBizcircleTree(data, success) {
    util.requestGet(util.houseDomain + "ho/houseOwner/getSubscribeBizcircleTree", data, success)
  },

  //取消商圈订阅 /shulan-jjr-gateway/api/v1/ho/houseOwner/doUnsubscribeBizcircle
  doUnsubscribeBizcircle(data, success) {
    util.requestPost(util.houseDomain + "ho/houseOwner/doUnsubscribeBizcircle", data, success)
  },

  // 根据商圈信息查询订阅的小区/shulan-jjr-gateway/api/v1/ho/houseOwner/getSubScribeResblocks
  get_subScribe_resblock(data, success) {
    util.requestPost(util.houseDomain + "ho/houseOwner/getSubScribeResblocks", data, success)
  },

  // 订阅 取消订阅小区 /shulan-jjr-gateway/api/v1/ho/houseOwner/doSubscribeResblock
  doSubscribeResblock(data, success) {
    util.requestGet(util.houseDomain + "ho/houseOwner/doSubscribeResblock", data, success)
  },

  // 订阅接口——订阅小区id列表
  houseOwnerSubscribeList(data, success) {
    util.requestPost(util.houseDomain + "ho/houseOwner/subscribeList", data, success)
  },

  // 房源接口-房源列表查询
  houseOwnerList(data, success) {
    util.requestPost(util.houseDomain + "ho/houseOwner/list", data, success)
  },

  /** 业主房源 查询小区
   *  resblockName；搜索词 
   *  subscribed 全网false   我的订阅 true
   */
  getHouseOwnerResblickByNameAll(data, success) {
    data.subscribed = false
    util.requestGet(util.houseDomain + "ho/houseOwner/getResblickByName", data, success)
  },
  getHouseOwnerResblickByNameMy(data, success) {
    data.subscribed = true
    util.requestGet(util.houseDomain + "ho/houseOwner/getResblickByName", data, success)
  },

  //申请城市开通 /unified-user-gateway/api/v1/applyFor/doRequestOpenCity
  doRequestOpenCity(data, success) {
    util.requestPost(util.domain + "applyFor/doRequestOpenCity", data, success)
  },
  //检查城市是否更新过 /unified-user-gateway/api/v1/applyFor/checkSubmitOpenCity
  checkSubmitOpenCity(data, success) {
    util.requestPost(util.domain + "applyFor/checkSubmitOpenCity", data, success)
  },

  //查询是否有订阅 /shulan-jjr-gateway/api/v1/ho/houseOwner/getOwnerSubscribeResblockCount
  getOwnerSubscribeResblockCount(data, success) {
    util.requestGet(util.houseDomain + "ho/houseOwner/getOwnerSubscribeResblockCount", data, success)
  },

  //判断当前城市是否开通 /shulan-jjr-gateway/api/v1/ho/houseOwner/getOwnerSubscribeCountByCityCode
  getOwnerSubscribeCountByCityCode(data, success) {
    util.requestGet(util.houseDomain + "ho/houseOwner/getOwnerSubscribeCountByCityCode", data, success)
  },
  // 获取我的合作咨询
  searchMyConsultCooperation(data, success, fail) {
    util.requestGet(util.houseDomain + "hou/cooperation/searchMyConsultCooperation", data, (res) => {
      errorHandler(res, success, fail)
    }, fail)
  },

  // 合作房源 地图小区列表
  listForCooperation: (data, success, fail) => {
    return util.requestGet(util.houseDomain + "hm/resblock/listForCooperation", data, success, fail)
  },

  /** 
   * 合作房源商圈 
   * /api/v1/external_house/getBizcirclesCooperationHouse?cityCode=310000&lng=121.52968&lat=31.239269
   * cityCode 
   * lng 经度
   * lat 维度
   */
  getBizcirclesCooperationHouse: (data, success, fail) => {
    util.requestGet(util.houseDomain + "external_house/getBizcirclesCooperationHouse", data, success, fail)
  },

  // 合作房源详情页浏览记录
  addVisitor: (data, success, fail) => {
    util.requestPost(util.houseDomain + "hou/cooperation/addVisitor", data, success, fail)
  },

  //保存业务范围 /shulan-jjr-gateway/api/v1/ho/houseOwner/saveServiceScope
  save_service_scope(data, success) {
    util.requestPost(util.houseDomain + "ho/houseOwner/saveServiceScope", data, success)
  },

  //查询用户是否保存业务范围 /shulan-jjr-gateway/api/v1/ho/houseOwner/getServiceScope
  get_service_scope(data, success) {
    util.requestGet(util.houseDomain + "ho/houseOwner/getServiceScope", data, success)
  },

  // 根据机型查询支付配置
  getReferenceDetailInfoByPhone(data, success, fail) {
    util.requestGet(util.houseDomain + "pm/pmReferenceInfo/getReferenceDetailInfoByPhone", data, success, fail)
  },
  /** 
   * 房态列表
   * page
   * pageSize
   */
  queryCooperationConfirm(data, success, fail) {
    util.requestGet(util.houseDomain + "hou/cooperation/queryCooperationConfirm", data, (res) => {
      errorHandler(res, success, fail)
    }, null, {
      isAllowRepeat: true
    })
  },

  /** 
   * 查询下架原因列表
   */
  reasonsForRemoval(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/reasonsForRemoval", data, (res) => {
      errorHandler(res, success)
    })
  },

  /** 
   * 查询未确认房态数量
   */
  cooperationConfirmCount(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/confirmCount", data, success)
  },


  /** 
   * 房态确认
   * status	string 非必须 1:已确认2:需进一步确认	
     confirmId	string 非必须 待确认id	
     houseCooperationId	string 非必须 合作房源id
   */
  cooperationConfirm(data, success, fail) {
    util.requestPost(util.houseDomain + "hou/cooperation/confirm", data, (res) => {
      errorHandler(res, success, fail)
    })
  },

  // 删除房源
  deleteHouseByIds(data, success, fail) {
    util.requestDelete(util.houseDomain + "hou/deleteHouseByIds", data, success, fail)
  },

  // /shulan-jjr-gateway/api/v1/hou/cooperation/queryMyCooperationCount   =====0601合作房源优化====
  queryMyCooperationCount(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/queryMyCooperationCount", data, success)
  },

  // 新房下架
  downNewHouseById(data, success, fail) {
    util.requestPost(util.houseDomain + "hm/newHouseController/downOrUpNewHouseById", data, success, fail)
  },


  // 房源举报 /shulan-jjr-gateway/api/v1/cooperation/complaint/addCooperationAgainstCounterfeiting
  addCooperationAgainstCounterfeiting(data, success) {
    util.requestPost(util.houseDomain + "cooperation/complaint/addCooperationAgainstCounterfeiting", data, success)
  },
  // 打假类型 /shulan-jjr-gateway/api/v1/cooperation/reportType
  reportType(data, success) {
    util.requestGet(util.houseDomain + "cooperation/reportType", data, success)
  },

  //合作质询评价 /shulan-jjr-gateway/api/v1/cooperation/complaint/addCooperationReport
  addCooperationReport(data, success) {
    util.requestPost(util.houseDomain + "cooperation/complaint/addCooperationReport", data, success)
  },

  // 房源详情情报总览
  getExternalCountByDelId(data, success) {
    return util.requestGet(util.houseDomain + "external_house/getExternalCountByDelId", data, success)
  },

  // 房源详情最近情报
  getExternalLogByHouseId(data, success) {
    return util.requestPost(util.houseDomain + "external_house/getExternalLogByHouseId", data, success)
  },

  // 房源详情房东电话查询
  getLandlordPhone(data, success) {
    return util.requestPost(util.houseDomain + "hmDelOwnerPhoneBook/list", data, success)
  },

  // 房源详情房东电话保存
  saveLandlordPhone(data, success) {
    return util.requestPost(util.houseDomain + "hmDelOwnerPhoneBook/save", data, success)
  },

  // 房源详情房东电话编辑
  editLandlordPhone(data, success) {
    return util.requestPut(util.houseDomain + "hmDelOwnerPhoneBook/edit", data, success)
  },

  // 房源详情房东电话删除
  delLandlordPhone(data, success) {
    return util.requestDelete(util.houseDomain + "hmDelOwnerPhoneBook/deleteById/" + data, '', success)
  },

  // 房源详情房源轨迹查询
  getHouseTrack(data, success) {
    return util.requestPost(util.houseDomain + "hmDelHouseTrackController/list", data, success)
  },

  // 房源详情房源轨迹保存
  saveHouseTrack(data, success) {
    return util.requestPost(util.houseDomain + "hmDelHouseTrackController/save", data, success)
  },

  // 房源详情房源轨迹编辑
  editHouseTrack(data, success) {
    return util.requestPut(util.houseDomain + "hmDelHouseTrackController/edit", data, success)
  },

  // 房源详情房源轨迹删除
  delHouseTrack(data, success) {
    return util.requestDelete(util.houseDomain + "hmDelHouseTrackController/deleteById/" + data, '', success)
  },

  //个人房源的tabbar /http://localhost:8080/shulan-jjr-gateway/api/v1/cooperation/user/getOverAllUserData
  getOverAllUserData(data, success) {
    util.requestPost(util.houseDomain + "cooperation/user/getOverAllUserData", data, success)
  },















  //认证信息------用户宣言查询 /shulan-jjr-gateway/api/v1/cooperation/authentication/info
  authenticationInfo(data, success) {
    util.requestGet(util.houseDomain + "cooperation/authentication/info", data, success)
  },

  // 宣言类型 /shulan-jjr-gateway/api/v1/cooperation/authentication/authType
  authType(data, success) {
    util.requestGet(util.houseDomain + "cooperation/authentication/authType", data, success)
  },

  //保存&修改宣言 /localhost:8080/shulan-jjr-gateway/api/v1/cooperation/authentication/save?declaration=88888
  authenticationSave(data, success) {
    util.requestPost(util.houseDomain + "cooperation/authentication/save", data, success)
  },

  //个人房源的tabbar /http://localhost:8080/shulan-jjr-gateway/api/v1/cooperation/user/getOverAllUserData
  getOverAllUserData(data, success) {
    util.requestPost(util.houseDomain + "cooperation/user/getOverAllUserData", data, success)
  },


  //发房时的检测 /api/v1/hou/cooperation/authenticityCheck
  authenticityCheck(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/authenticityCheck", data, success)
  },
  // 合作房源发房优化 2021-07-08
  publishCooperationHouseAddId(data, id, success, fail) {
    util.requestPost(util.houseDomain + "hou/cooperation/publishCooperationHouse?authenticityId=" + id, data, (res) => {
      errorHandler(res, success, fail)
    })
  },

  //个人房源详情页编辑   http://localhost:8080/shulan-jjr-gateway/api/v1/hou/houseAndCommissionUpdate
  houseAndCommissionUpdate(data, success) {
    util.requestPost(util.houseDomain + "hou/houseAndCommissionUpdate", data, success)
  },

  // 认证信息修改    2021---07 ---27
  // /api/v1/hou/cooperation/onlineauthentication/getAuthenticationInfo
  getAuthenticationInfo(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/onlineauthentication/getAuthenticationInfo", data, success)
  },

  // 加入合作/shulan-jjr-gateway/api/v1/hou/cooperation/onlineauthentication/applyForAuthentication
  applyForAuthentication(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/onlineauthentication/applyForAuthentication", data, success)
  },

  //记录邀请人关系 shulan-jjr-gateway/api/v1/hou/cooperation/onlineauthentication/recordInvitedAuthentication
  recordInvitedAuthentication(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/onlineauthentication/recordInvitedAuthentication", data, success)
  },

  // 认证完成后且没有发布房源出现弹窗 shulan-jjr-gateway/api/v1/hou/cooperation/showWindow
  showWindow(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/showWindow", data, success)
  },

  /** 
   * 判断委托是否可推
   * delId
   */
  examineDelPushAble(data, success) {
    util.requestGet(util.houseDomain + "hou/examineDelPushAble", data, success)
  },

  /** 
   * 推荐有礼拉新关系记录
   * inviteUserId 邀请人ID
   * 
   * condition	integer 必须 1:扫自己的码 2:老用户 3:被拉新或者被拉新过，但是未授权过等需要展示领取礼包字样
   * nickName	string 必须 拉新人的昵称	
      avatar	string 必须 头像
   */
  relationshipAdd(data, success) {
    util.requestPost(util.houseDomain + "pm/userRelation/add", data, success)
  },

  /** 
   * 从首页进入小程序检查拉新裂变是否需要弹窗（搜索小程序进入）
   */
  checkMemberFessionWindow(data, success) {
    util.requestPost(util.houseDomain + "pm/userRelation/checkMemberFessionWindow", data, success)
  },

  /** 
   * 推荐有礼拉新关系记录
   * shulan-jjr-gateway/api/v1/pm/userRelation/getAppletSharingInfo
   * refCode 区别获取不同的文案和图片
   */
  getAppletSharingInfo(data, success) {
    util.requestGet(util.houseDomain + "pm/userRelation/getAppletSharingInfo", data, success)
  },

  /** 
   * 裂变的新人奖励 - 领取
   */
  releaseNewMemberReward(data, success) {
    util.requestPost(util.houseDomain + "pm/userRelation/releaseNewMemberReward", data, success)
  },

  /** 
   * 是否关注微信公众号
   * shulan-jjr-gateway/api/v1/pm/userRelation/isBatch
   */
  isBatch(data, success) {
    util.requestGet(util.houseDomain + "pm/userRelation/isBatch", data, success)
  },


  /** 
   * 活动海报邀请记录
   * shulan-jjr-gateway/api/v1/pm/userRelation/getInviteRecode
   * status: "PENDING",    ALL全部     PENDING 待完成     COMPLETED 已完成     FAILURE 已失效
   * page: "1",
   * pageSize:"10"
   */
  getInviteRecode(data, success) {
    util.requestPost(util.houseDomain + "pm/userRelation/getInviteRecode", data, success)
  },


  /** 
   * 活动海报邀请记录
   * shulan-jjr-gateway/api/v1/pm/userRelation/queryUserFissionRewardList
   * page: "1",
   * pageSize:"10"
   */
  queryUserFissionRewardList(data, success) {
    util.requestPost(util.houseDomain + "pm/userRelation/queryUserFissionRewardList", data, success)
  },


  /** 
   * 校验是否需要客源认证弹框
   * /shulan-jjr-gateway/api/v1/hou/cooperation/inviterAuth/checkInviterAuthWindow
   * lng: 经度,
   * lat: 维度
   * toUserId: 房源方id
   */
  checkInviterAuthWindow(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/inviterAuth/checkInviterAuthWindow", data, success)
  },

  /** 
   * 查询地理位置
   * /shulan-jjr-gateway/api/v1/hou/cooperation/inviterAuth/getLocation
   * lng: 经度,
   * lat: 维度
   */
  getLocationAuthWindow(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/inviterAuth/getLocation", data, success)
  },


    /** 
   * 验证弹窗信息提交接口
   * /shulan-jjr-gateway/api/v1/hou/cooperation/inviterAuth/submitVerifiedInfo
   * imgUrl: 图片,
   * toUserId:房源方id
   */
  submitVerifiedInfo(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/inviterAuth/submitVerifiedInfo", data, success)
  },


  /** 
   * 获取im聊天小卡片内容
   * /shulan-jjr-gateway/api/v1/hou/cooperation/inviterAuth/getCardInfo
   * lng: 经度,
   * lat: 维度
   */
  getCardInfo(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/inviterAuth/getCardInfo", data, success)
  },

  /** 
   * 校验是否需要发送小卡片
   * 入参
   *  "toUserId": -- 对方的用户id
      "entryType":1 -- 入口渠道：1:IM 2:外呼手机号 
     出参
       "imgList": []
      "needCard":      --   1：需要小卡片 2：不需要小卡片 
   */
  checkIMCard(data, success) {
    util.requestPost(util.houseDomain + "hou/hmcooperationimcard/checkIMCard", data, (res) => {
      errorHandler(res, success)
    })
  },

  /** 
   * 获取虚拟号（房源信息非必须）
   * 入参
   * {
    "toUserId":"", -- 拨打的对方
    "cooperationId":"aa" -- 合作房源信息，非必填
    }
    出参
     "virtualNum": "18916765073"
   */
  getVirtualNumberNoNeedCooperationInfo(data, success) {
    util.requestPost(util.houseDomain + "hou/hmcooperationimcard/getVirtualNumberNoNeedCooperationInfo", data, (res) => {
      errorHandler(res, success)
    }, null, { loading: true })
  },

    /** 
   * 合作房源首页轮播图
   * /shulan-jjr-gateway/api/v1/hou/cooperation/noticeBanner
   */
  noticeBanner(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/noticeBanner", data, success)
  },

    /** 
   * 获取推荐的经纪人
   * shulan-jjr-gateway/api/v1/hou/cooperation/getRecommendJJRInfo
   * "hdResblockId":"82339822ab3f4d5d91a0ddee76242423",  Hd的小区id
   * "page":1,
   * "pageSize":10
   */
  getRecommendJJRInfo(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/getRecommendJJRInfo", data, success)
  },

  /** 
   * 房评 根据requestId获取数据
   */
  getRequestData(data, success, fail) {
    util.requestGet(util.houseDomain + "hou/port/getRequestData", data, success, fail)
  },

  /** 
   * 房评 打卡
   */
  clockCheck(data, success) {
    util.requestPost(util.houseDomain + "hou/port/clockCheck", data, success)
  },

  /** 
   * 我的房源访客列表
   * /shulan-jjr-gateway/api/v1/hou/cooperation/searchMyCooperationVisitor
   * "cooperationId":"604fd31e23d04ac0b5881b89c4675db4",  房源id
   * "page":1,
   * "pageSize":10
   */
  searchMyCooperationVisitor(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/searchMyCooperationVisitor", data, success)
  },

  /** 
   * 防雷达反馈
   * roomrardarLogId
   * feedback true有帮助 false
   */
  roomRadarFeedBack(data, success) {
    util.requestGet(util.houseDomain + "hou/roomRadarFeedBack", data, success)
  },







  /** 
   * 查看访客列表时---出现房态弹窗 ---点击仍可合作
   * api/v1/hou/cooperation/houseStatusConfirm
   * content 为true展示更多， false：关闭弹窗
   */
  houseStatusConfirm(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/houseStatusConfirm", data, success)
  },

 /** 
   * 查看访客列表时---出现房态弹窗 ---点击仍可合作---点击更多即将下架房源
   * api/v1/hou/cooperation/searchMyCooperationComingDown
   */
  searchMyCooperationComingDown(data, success) {
    util.requestGet(util.houseDomain + "hou/cooperation/searchMyCooperationComingDown", data, success)
  },

   /** 
   * 查看访客列表时---出现房态弹窗 ---点击仍可合作---点击更多即将下架房源---选择多条房源
   * /shulan-jjr-gateway/api/v1/hou/cooperation/conFirmComingDown
   * "houseCooperationIds":["37f8f269eef04bd7a27a7c35a9087ef9",'37f8f269eef04bd7a27a7c35a9087ef9']
   */
  conFirmComingDown(data, success) {
    util.requestPost(util.houseDomain + "hou/cooperation/conFirmComingDown", data, success)
  },


  /** 
   * 获取用户GIO信息
   */
  getGioUserInfo(data, success) {
    util.requestGet(util.houseDomain + "cooperation/user/getGioUserInfo", data, success)
  },

}